Repository navigation
docs(adr-0087): the disposition text names the second no-migration-prescription refusal - #33460
Conversation
…escription refusal The disposition paragraph and the 2026-08-30 addendum's category table now say what the gate does since its narrowed-signal refusal landed: on a changeset declaring a narrowed Metadata-protocol kind, the catch-all is refused before its body is read, and the fix is a registered semantic entry or a category resting on a checked fact. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5kEE8LS4Ggh2CNTqiR
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: Inputs: card #32674 (body, triage, claim, os-dev-report), PR #33460 (body, one-file list, net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings:
No must-fix and no should-fix: nits alone end the round. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-14T21:56Z · isolated sub-agent at CONTRACT_REVIEW_TIER · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
|
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: At-tier re-review, judged from the tree. Inputs: card #32674 (body and all four comments), PR #33460 (body, one-file list, net diff against ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Sentence by sentence (:765 to :778):
Table row (:880): the measured sentence stays; the note says the category is refused before the body is read on a declared narrowing and points to "the vocabulary paragraph of the 2026-08-13 addendum", which resolves to the heading at :732 ("the changeset disposition vocabulary, and its fifth category"). Correct, and it does not re-grade the #12104 measurement. Attempts to break it, none of which lands:
Findings (all nits; none affects correctness or the contract):
No must-fix and no should-fix: nits alone end the round. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T00:29Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Correction: contract-review tierThe contract-review record(s) 6884807805 on this PR say The seat re-runs the review at |
…jectstack-ai#33520) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XXDyxopB9zx7G4FSjcZacd4)_ Fixes objectstack-ai#30598 domain:skills#1 · os-project-manager · session_01FEkQ5kVi3STvGvJ9hHHAgS Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:ADR-0087 门禁的 `runtime-export-retired` 类别现在认包 `exports` 映射里的字面子路径键:`包/子路径#导出`、`包/子路径#类型.成员`、`包/子路径#*`(该键在 HEAD 离开映射、包还在)。子路径入口按 `dist/X.d.ts` 对应唯一的 `src/X.ts` 或 `src/X.tsx` 读;通配键、非 TS 键(`./style.css`)、对不上源文件的键都按名拒绝。ADR-0087 D9 原地加一条修订,自测加 SP 电池 80 例。 - 为什么改:以前只读根入口,子路径上退役的导出只能写 `no-migration-prescription` 并去掉箭头躲检测器,正是 D7 要消除的形态。你在决策卡上选了「A 收窄:只认字面子路径键」(卡上记录 6885400963)。 - 风险与回滚:只动门禁脚本和 ADR 文字,不发布任何包;旧的根入口三种写法行为不变(原有 739 个自测断言全绿)。回滚即还原本 PR。 - 先看:`scripts/check-adr-0087-registration.mjs` 的 `subpathSourceEntry` 与 `verifySubpathRetired`;`parseExportOperand`;ADR-0087 D9 新增的 2026-11-14 修订段。 - 两分钟验证:`node scripts/check-adr-0087-registration.mjs --self-test`,预期 `✓ ... 819 assertions`。 - 需要你做的:审阅并合并(ADR 属 Tier H,需你亲手合并或授权批准)。 ## What changes **`scripts/check-adr-0087-registration.mjs`, category `runtime-export-retired`.** - `parseExportOperand` splits the operand at the package name (`splitPackageSpecifier`): `@scope/pkg/a/b#X` reads the `./a/b` key, `@scope/pkg#X` the `.` key as before. It returns `subpath` and `specifier` beside the old fields. A subpath with a `*` anywhere is refused by name as a WILDCARD; an empty, `.` or `..` segment is refused; a subpath spelling a TS source file keeps the old "names a FILE" refusal. - `sourceEntryAt` takes the key. The root branch is unchanged. A subpath key (`subpathSourceEntry`) reads its types entry with `resolveTypesEntry(manifest, './sub')` and maps `dist/P.d.ts` (or a `.d.mts` / `.d.cts` twin) to exactly one of `src/P.ts` / `src/P.tsx`. Refused by name: a key only a wildcard key reaches (`wildcardKeysMatching`, which never resolves the pattern), a key that names no `.d.ts` (`./style.css`), an unmappable key, an ambiguous key, and an absent key (marked `keyAbsent`). - Export and member operands on a subpath run the three predicates unchanged, through a surface cache keyed by rev, package and key. When the key left the map at HEAD, the refusal names the whole-key spelling. - `PACKAGE/SUB#*` is new (`verifySubpathRetired`). Predicate 1: the key maps at the base; at HEAD the package is still a workspace member (a deleted one points at `PACKAGE#*`), it declares an `exports` map (a missing field and `"exports": null` are both refused: Node and TypeScript read null as absent), the key is gone and no wildcard key reaches it. Predicate 2: none of the package's own files the key's entry reaches is a metadata surface (a file of another workspace package the entry re-exports is that package's, judged when its name is an export operand), and no metadata surface outside the package names the specifier in code (`packageReference`, shared with `PACKAGE#*`). Predicate 3: one FROM line names the specifier. - Header comments, the HOW hint and the "deliberately NOT checked" paragraph are updated. New battery `SP (objectstack-ai#30598)`, floor 80. **`docs/adr/0087-metadata-protocol-upgrade-contract.md`, D9, plus one pointer in the 2026-10-12 addendum's opening.** A third amendment note under the unmappable-entry paragraph, in the shape of the two 2026-10-27 notes (provenance, measurement, the three marker forms, the refusals, the three predicates for `#*`). The "What this does not decide" sentence now names the wildcard refusal. The Status line gets an **Amended** entry, and the 2026-10-12 addendum's opening sentence points at the new note. ## Why Ruling: the maintainer chose A, narrowed, 「A 收窄:只认字面子路径键」, on a decision card at 2026-11-14T22:42Z; the option read 「新增 <pkg>/<sub>#Export、#Type.member、#*;通配键按名拒绝。改门禁并修订 D9,立一张 skills 卡。」 Recorded on the card as comment 6885400963. Analysis: project file `pm-orders/skills/30598-decision-analysis.md`. ## Acceptance notes - **Measured on this tree (`f068cde8`)** with the new `sourceEntryAt` over every published package's `exports` keys: 110 published packages, 26 declare subpath keys, 78 keys besides `./package.json`. 68 map, 4 are unmappable (`@objectstack/scenarios` `./score`, `./score/full`, `./runner`, `./export`), 5 are not TS (`@objectstack/spec` `./openapi.json`, four `./style.css`), 1 is a wildcard (`@object-ui/i18n` `./locales/*`), 0 ambiguous. This matches the evaluation's 68 / 4 / 5 / 1. `@objectstack/cli/console` maps to `packages/cli/src/console.ts`; `@object-ui/i18n/locales` maps to `ui/packages/i18n/src/locales/index.ts`; `@object-ui/i18n/locales/zh` is refused through `./locales/*`. - **The objectstack-ai#30511 changeset (PR objectstack-ai#30902) is not re-graded**, per the ruling. - **No skill or reference teaches the operand grammar.** `git grep runtime-export-retired` under `skills/**`, `.claude/**`, `content/**` and `AGENTS.md` has no hit, so the order's third surface is empty. The gate's own refusal text (the HOW hint) names the subpath form. - **A re-export of another package's SUBPATH is still not followed** by the export reader (only a root re-export is). An `export *` of one stays an unresolved star that refuses an absence claim, which is the conservative direction. Not in the ruling's scope. - **PR objectstack-ai#33460** (card objectstack-ai#32674) also edits ADR-0087, at the 2026-08-13 addendum's vocabulary paragraph, not D9. It had not merged when this branch was cut; the seat orders the landing. ## Verification Changed: 2 files. `dispatch-gates --tier`: MANDATORY contract-review tier (`docs/adr/**`, no one-line exit). `check-governed-merges --branch`: GOVERNED, Tier H (`docs/adr/**` ×1), 508 changed lines, under 3000. Changeset: none, labelled `skip-changeset`: the diff is `docs/adr/**` and a repo-root `scripts/` gate, and no package's `files[]` ships either. Local gates at head `6d1f3bce` (round 3, after the at-tier contract review 6886775383; round 2 was `dc3d60c0` merged with `origin/main` `e3f0cfd4` as `92259ce2`). The derived list was taken and run on `6d1f3bce` itself; earlier rounds ran the same 44 families on `dd6bc2a7` and `92259ce2`, all exit 0. <details><summary>44 derived gate families on 6d1f3bc, all exit 0; `--ran` reconciliation 44 / 44, 0 NOT-MEASURED</summary> Closure built first: `pnpm --filter "@objectstack/lint..." build` under the verify lock, `VERDICT command-exit 0`. ``` node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0 node scripts/check-adr-0087-registration.mjs --self-test :: exit 0 node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-declaration-mirrors.mjs :: exit 0 node scripts/check-declaration-mirrors.mjs --self-test :: exit 0 node scripts/check-self-test-wired.mjs :: exit 0 node scripts/check-self-test-wired.mjs --self-test :: exit 0 node scripts/check-self-test-workflow-commands.mjs :: exit 0 node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0 node scripts/check-whole-set-label-write.mjs :: exit 0 node scripts/check-whole-set-label-write.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:adr-anchors :: exit 0 pnpm check:adr-index :: exit 0 pnpm check:adr-symbol-anchors :: exit 0 pnpm check:agent-test-spelling :: exit 0 pnpm check:bash32-floor :: exit 0 pnpm check:changeset-gate-self-tests :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cli-command-ids :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:entry-guard :: exit 0 pnpm check:future-spec-major :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:parse-guard :: exit 0 pnpm check:pm-dispatch-gates :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-prior-rulings :: exit 0 pnpm check:pnpm-filter-targets :: exit 0 pnpm check:pnpm-flag-spellings :: exit 0 pnpm check:ratchet-remedy-authority :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:scripts-symbol-anchors :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` </details> <details><summary>The gate's own self-test: 819 assertions</summary> With the new code and before the new battery was added, the self-test printed 739 assertions, every existing battery green (the root operands are unchanged). With battery `SP (objectstack-ai#30598)` it prints `✓ check-adr-0087-registration --self-test: 819 assertions over real temp git repos`. SP registers 80 cases: G1 to G6 (export, member, whole key, root and subpath in one marker, arrow form, whole key over an entry that re-exports another package's root), R1 to R20 (wildcard reach, wildcard spelling, non-TS key, unmappable key, absent key, still exported, export on a gone key, key still in the map, wildcard at HEAD, package deleted, no `exports` map at HEAD, metadata surface importing the subpath, entry reaching a metadata surface, per-export FROM lines, ambiguous `.ts`/`.tsx`, `"exports": null` at HEAD, no whole-key hint without an `exports` map, a `types` condition naming a TS source, a member hint naming the subpath spelling, the re-exported name refused as an export operand; SP-R17c/d pin a missing `exports` field beside the null case), and unit pins U1 to U9 on the parser, `splitPackageSpecifier` and `wildcardKeysMatching`. One-off mutations, each restored and never committed: the null check back to an undefined-only test reds SP-R16; dropping the own-directory filter on the entry's files reds SP-G6. The gate has no separate `*.test.ts`; `git grep` of its file name in test files has no hit. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5kVi3STvGvJ9hHHAgS <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Leehom · project thread
Fixes #32674
domain:skills#1 · os-project-manager · session_01FEkQ5kEE8LS4Ggh2CNTqiR
Clause-②: no
Metadata-protocol: none
维护者速读
no-migration-prescription一句补上第二种拒收(2026-11-12 修订注,引 check-adr-0087-registration: a changeset declaringMetadata-protocol: narrowedcan still takenot-required (no-migration-prescription), so a narrowing ships with no upgrade-guide entry (#32345 item 2) #32601 / PR fix(adr-0087): refuse not-required (no-migration-prescription) on a declared Metadata-protocol: narrowed #32649):changeset 声明 narrowed 的元数据协议种类时,不读正文直接拒收;并写明出路(登记 semantic 条目,或确实成立的有事实可核的类别)。2026-08-30 附录的类别表同一行加修订注指回该段。docs/adr/0087-metadata-protocol-upgrade-contract.md第 764 行起的处置词表段落(「amended 2026-11-12」括注),再看第 880 行类别表no-migration-prescription那一行。node scripts/check-adr-0087-registration.mjs --self-test && node scripts/check-adr-0087-registration.mjs --base origin/main,预期两者 exit 0(门禁读 ADR 的类别集合,集合不变)。docs/adr/**):请批准或合并。What changes
One file,
docs/adr/0087-metadata-protocol-upgrade-contract.md(+19 / −6). No gate,CATEGORIESor vocabulary change.:764). After "no-migration-prescriptionis refused by a body that carries a migration prescription" comes an inline amendment, in the ADR's own(**amended DATE**, #card: …)style, citing check-adr-0087-registration: a changeset declaringMetadata-protocol: narrowedcan still takenot-required (no-migration-prescription), so a narrowing ships with no upgrade-guide entry (#32345 item 2) #32601, seat decision A, landed as PR fix(adr-0087): refuse not-required (no-migration-prescription) on a declared Metadata-protocol: narrowed #32649 (a8c761fb). It states the refusal as the gate makes it: refused outright, before its justification or its body is read, on a changeset that declares anarrowedMetadata-protocol kind (signal (5) of the breaking declaration); why (a narrowing refuses something an author used to write, and the upgrade guide andobjectstack migrate meta, both generated from the ledger, are where an upgrading author learns it, however the fix is worded); the prescription (aregisteredsemantic entry underpackages/spec/src/migrations/entries/semantic/, oralready-registered/unpublished/runtime-interface-only/type-surface-only/runtime-export-retiredwhen one is true; a change that refuses nothing should correct itsMetadata-protocol:line); and the two boundaries (added,semantic,nonekeep the exemption; a changeset already breaking at the branch point is inherited). The −6 lines are the rest of the same paragraph re-wrapped around the insertion; no word of it changed.:880). The measuredrefused — the body carries a FROM/TO block.stays, and a dated note says that on a declared narrowing the category is refused before the body is read, pointing back to the paragraph above. The table is a measurement of the A sixth client-SDK erasure spelling, larger than the other five combined: 43 exported methodsreturn res.json()directly, whose lib.dom type isPromise< any >#12104 shape, so the note adds the second refusal without re-grading that measurement.Acceptance notes
The text was read from the gate on
origin/mainba35dfd7(no commit aftera8c761fbtouches either file), not from the card's line numbers:scripts/check-adr-0087-registration.mjsscan(): theNARROWED_SIGNALcheck sits afterCATEGORIES.includesand before the 40-characterwhycheck and every body readnarrowedkindbreakingDeclaration():kind?.kind === 'declared' && kind.value === 'narrowed'pushesNARROWED_SIGNALscan();MIGRATION_LEDGER_ENTRY_DIRS[0]=packages/spec/src/migrations/entries/semanticadded/semantic/nonekeep it; branch-point stock is inheritedM/Rinheritance branch inscan()grep -n "32601\|narrowed"hit nothing in the disposition paragraph or the table).adr-0087: not-required (CATEGORYcomment lines); the edit adds none, and both gate runs below pass it.:1078,admittedfor feat(plugin-email)!: email templates resolve from the registry; the built-in seed, the boot sweep and the live projector retire (ADR-0131 D6/D10, C4 stage 2) #22875's arrowless retirement lines): it records a measurement of that changeset under the gate of its day, outside the card's Ask.Verification
Derived gates on head c87603a (25 of 25 exit 0)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 25 commands; each ran with its exit captured before any pipe.--ran: "25 derived famil(ies) accounted for — 25 run, 0 NOT-MEASURED".check:doc-formula-expressionsran afterpnpm --filter "@objectstack/lint..." buildunder the lock (VERDICT command-exit 0).Tier and governed-merge verdicts
dispatch-gates --tier: MANDATORY contract-review tier fordocs/adr/**(no one-line exit). This card thread ran on the claim's default tier; named as a deviation in the report, and the seat's in-seat contract review at tier is the owed record.check-governed-merges.mjs --branch claude/project-thread-4z6pjc: exit 3, GOVERNED, landing tier H (人合),docs/adr/** ×1; 25 changed lines, under the 3000 threshold.skip-changeset(docs/adr/**ships in no package).Generated by Claude Code